package com.apifamily.project.service.impl.inner;

import com.apifamily.common.service.InnerUserInterfaceInfoService;
import com.apifamily.project.service.UserInterfaceInfoService;
import org.apache.dubbo.config.annotation.DubboService;

import javax.annotation.Resource;

@DubboService
public class InnerUserInterfaceInfoServiceImpl implements InnerUserInterfaceInfoService {
    @Resource
    private UserInterfaceInfoService userInterfaceInfoService;

    /**
     * 调用接口统计次数
     * @param interfaceInfoId 接口ID
     * @param userId 调用者ID
     * @return
     */
    @Override
    public boolean invokeCount(long interfaceInfoId, long userId) {
        return userInterfaceInfoService.invokeCount(interfaceInfoId, userId);
    }
}
